home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2086 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.edu,comp.lang.c,comp.lang.c++
  4. Subject: Re: C or C++ for a 14-year old?
  5. Date: Mon, 15 Jan 1996 21:53:44 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9601152053.AA06670@dxmint.cern.ch>
  8. References: <4b30ld$lp2$1@mhafc.production.compuserve.com> <4d4jeh$fv1@wombat.melbpc.org.au> <w+PJjMD4ED1aLz3@dexam.another.gun.de> <4ddsg4$p4e@sundog.tiac.net>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. amoreira@nine.com (Alberto C Moreira) writes:
  14.  
  15. >Still, there's no worse restriction on a programmer than not to be
  16. >able to talk directly to the hardware. 
  17. >
  18. >The best operating system isn't the one that does more, but the one
  19. >that gets out of the way when it's not needed. With DOS, I can
  20. >reach my hardware any time I want. With Windows, I can do that by
  21. >writing a VDD. With Windows 95, I can load that VDD on the fly.
  22. >
  23. >With Unix, I probably need to recompile the kernel - that is, if I'm a
  24. >hacker and I have the Unix source code.
  25.  
  26. The point is that with a good OS you don't have to talk directly to the
  27. hardware: this is the job of the OS, not of the application.
  28.  
  29. Direct access to the hardware within an application is needed only when
  30. the underlying OS doesn't provide the functionality needed or when it
  31. provides it in a horribly inefficient way.
  32.  
  33. Programs which access the hardware directly: 
  34.  
  35. 1. Are inherently non-portable.
  36.  
  37. 2. Cannot be safely used in a multitasking environment.
  38.  
  39. Of course, these points are non-issues for the MSDOS programmer.
  40.  
  41. Dan
  42. -- 
  43. Dan Pop
  44. CERN, CN Division
  45. Email: danpop@mail.cern.ch 
  46. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  47.